package com.caidanxiaoyuan.service.user;

import java.util.ArrayList;
import java.util.List;

import javax.inject.Singleton;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

import com.caidanxiaoyuan.model.UserList;

@Singleton
@Path("/users")
public class UserService {
	@GET
	@Produces({ "application/json", "application/xml" })
	public List<UserList> getMyResources() {
		List<UserList> users = new ArrayList<UserList>();
		return users;
	}

	@GET
	@Path("/{id}")
	@Produces({ "application/json" })
	public UserList getUser(@PathParam("id") String id) {
		UserList u = new UserList();
		u.setAccount("1");
		u.setNickname("2");
		return u;
	}
}
